package com.athl.gulimall.product.feign;

import com.athl.common.to.SkuReductionTo;
import com.athl.common.to.SpuBoundsTo;
import com.athl.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @className: com.athl.gulimall.product.feign.CouponFeignService
 * @description: TODO
 * @author: 易鑫
 * @create: 2022-08-06 14:42
 */

@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(SkuReductionTo skuReductionTo);
}
